home *** CD-ROM | disk | FTP | other *** search
-
-
-
- rrrreeeennnnaaaammmmeeee((((2222)))) rrrreeeennnnaaaammmmeeee((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- _rrrr_eeee_nnnn_aaaa_mmmm_eeee - change the name of a file
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_tttt_dddd_iiii_oooo_...._hhhh_>>>>
-
- _iiii_nnnn_tttt _rrrr_eeee_nnnn_aaaa_mmmm_eeee_((((_cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_oooo_llll_dddd_,,,, _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_nnnn_eeee_wwww_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _rrrr_eeee_nnnn_aaaa_mmmm_eeee renames a file. _o_l_d is a pointer to the pathname of the file or
- directory to be renamed. _n_e_w is a pointer to the new pathname of the
- file or directory. Both _o_l_d and _n_e_w must be of the same type (either
- both files, or both directories) and must reside on the same file system.
-
- If _n_e_w already exists, it is removed. Thus, if _n_e_w names an existing
- directory, the directory must not have any entries other than, possibly,
- ``_....'' and ``_...._....''. When renaming directories, the _n_e_w pathname must not
- name a descendant of _o_l_d. The implementation of _rrrr_eeee_nnnn_aaaa_mmmm_eeee ensures that upon
- successful completion a link named _n_e_w will always exist.
-
- If the final component of _o_l_d is a symbolic link, the symbolic link is
- renamed, not the file or directory to which it points.
-
- Write permission is required for both the directory containing _o_l_d and
- the directory containing _n_e_w.
-
- _rrrr_eeee_nnnn_aaaa_mmmm_eeee fails, _o_l_d is not changed, and no _n_e_w file is created if one or
- more of the following are true:
-
- _EEEE_AAAA_CCCC_CCCC_EEEE_SSSS A component of either path prefix denies search
- permission; one of the directories containing _o_l_d or
- _n_e_w denies write permission; one of the directories
- pointed to by _o_l_d or _n_e_w denies write permission; or
- _n_e_w exists and write permission is denied on _n_e_w.
-
- _EEEE_BBBB_UUUU_SSSS_YYYY _n_e_w is a directory and the mount point for a mounted
- file system.
-
- _EEEE_DDDD_QQQQ_UUUU_OOOO_TTTT The directory in which the entry for the new name is
- being placed cannot be extended because the user's
- quota of disk blocks on the file system containing
- the directory has been exhausted.
-
- _EEEE_EEEE_XXXX_IIII_SSSS_TTTT The link named by _n_e_w is a directory containing
- entries other than ``_....'' and ``_...._....''.
-
- _EEEE_FFFF_AAAA_UUUU_LLLL_TTTT _o_l_d or _n_e_w points outside the process's allocated
- address space.
-
- _EEEE_IIII_NNNN_VVVV_AAAA_LLLL _o_l_d is a parent directory of _n_e_w, or an attempt is
- made to rename ``_....'' or ``_...._....''.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- rrrreeeennnnaaaammmmeeee((((2222)))) rrrreeeennnnaaaammmmeeee((((2222))))
-
-
-
- _EEEE_IIII_NNNN_TTTT_RRRR A signal was caught during execution of the _rrrr_eeee_nnnn_aaaa_mmmm_eeee
- system call.
-
- _EEEE_IIII_OOOO An I/O error occurred while making or updating a
- directory entry.
-
- _EEEE_IIII_SSSS_DDDD_IIII_RRRR _n_e_w points to a directory but _o_l_d points to a file
- that is not a directory.
-
- _EEEE_LLLL_OOOO_OOOO_PPPP Too many symbolic links were encountered in
- translating _o_l_d or _n_e_w.
-
- _EEEE_MMMM_UUUU_LLLL_TTTT_IIII_HHHH_OOOO_PPPP Components of pathnames require hopping to multiple
- remote machines and the file system type does not
- allow it.
-
- _EEEE_NNNN_AAAA_MMMM_EEEE_TTTT_OOOO_OOOO_LLLL_OOOO_NNNN_GGGG The length of the _o_l_d or _n_e_w argument exceeds
- {_PPPP_AAAA_TTTT_HHHH______MMMM_AAAA_XXXX}, or the length of a _o_l_d or _n_e_w component
- exceeds {_NNNN_AAAA_MMMM_EEEE______MMMM_AAAA_XXXX} while ______PPPP_OOOO_SSSS_IIII_XXXX______NNNN_OOOO______TTTT_RRRR_UUUU_NNNN_CCCC is in
- effect.
-
- _EEEE_NNNN_OOOO_EEEE_NNNN_TTTT A component of either _o_l_d or _n_e_w does not exist, or
- the file referred to by either _o_l_d or _n_e_w does not
- exist.
-
- _EEEE_NNNN_OOOO_LLLL_IIII_NNNN_KKKK Pathnames point to a remote machine and the link to
- that machine is no longer active.
-
- _EEEE_NNNN_OOOO_SSSS_PPPP_CCCC The directory that would contain _n_e_w is out of space.
-
- _EEEE_NNNN_OOOO_TTTT_DDDD_IIII_RRRR A component of either path prefix is not a directory;
- or the _o_l_d parameter names a directory and the _n_e_w
- parameter names a file.
-
- _EEEE_RRRR_OOOO_FFFF_SSSS The requested operation requires writing in a
- directory on a read-only file system.
-
- _EEEE_XXXX_DDDD_EEEE_VVVV The links named by _o_l_d and _n_e_w are on different file
- systems.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, a value of 0 is returned. Otherwise, a value
- of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to indicate the error.
-
- NNNNOOOOTTTTEEEESSSS
- The system can deadlock if there is a loop in the file system graph.
- Such a loop takes the form of an entry in directory _a, say _a/_f_o_o, being a
- hard link to directory _b, and an entry in directory _b, say _b/_b_a_r, being a
- hard link to directory _a. When such a loop exists and two separate
- processes attempt to perform _rrrr_eeee_nnnn_aaaa_mmmm_eeee _a/_f_o_o _b/_b_a_r and _rrrr_eeee_nnnn_aaaa_mmmm_eeee _b/_b_a_r _a/_f_o_o,
- respectively, the system may deadlock attempting to lock both directories
- for modification. The system administrator should replace hard links to
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- rrrreeeennnnaaaammmmeeee((((2222)))) rrrreeeennnnaaaammmmeeee((((2222))))
-
-
-
- directories by symbolic links.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _llll_iiii_nnnn_kkkk(2), _uuuu_nnnn_llll_iiii_nnnn_kkkk(2) _cccc_hhhh_mmmm_oooo_dddd(2), _oooo_pppp_eeee_nnnn(2).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-